import market

def main():
    while True:
        print('-------欢迎来到商超管理系统-------')
        print('1查看商品信息\n2查找商品\n3添加商品\n4修改商品价格折扣\n5删除商品\n6查看所有订单\n7删除订单\n8订单统计\n9商品结算\n')
        choice = int(input('请输入你的选择：'))
        if choice==1:
            market.show_products()
        elif choice==2:
            market.select_products()
        elif choice == 3:
            market.add_products()
        elif choice == 4:
            market.update_products()
        elif choice == 5:
            market.del_data()
        elif choice == 6:
            market.show_orders()
        elif choice == 7:
            market.del_orders()
        elif choice == 8:
            market.count_orders()
        elif choice == 9:
            market.add_orders()
        else:
            print('输入有误')


if __name__ == '__main__':
    main()